package com.atguigu.gmall.product;

import com.atguigu.gmall.common.config.exception.EnableAutoGlobalException;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@EnableAutoGlobalException
@SpringCloudApplication
@EnableTransactionManagement // 开启声明式事务
@EnableFeignClients(basePackages = {"com.atguigu.gmall.feign.search"})
public class ProductMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductMainApplication.class, args);
    }
}
